* eval.c: Port to Windows vsnprintf (Bug#8435).
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Apr 2011 23:28:52 +0000 (16:28 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Apr 2011 23:28:52 +0000 (16:28 -0700)
commit9ee357f34b9a63ef36e1c8e1f06526db0eda02c1
treebbee9d20ed33377ffee6df2c6e188dee40092f2e
parentf83a1a4d77cfb8fd00c84b1d34df09f9602f0534
* eval.c: Port to Windows vsnprintf (Bug#8435).

Include <limits.h>.
(SIZE_MAX): Define if the headers do not.
(verror): Do not give up if vsnprintf returns a negative count.
Instead, grow the buffer.  This ports to Windows vsnprintf, which
does not conform to C99.  Problem reported by Eli Zaretskii.
Also, simplify the allocation scheme, by avoiding the need for
calling realloc, and removing the ALLOCATED variable.
src/ChangeLog
src/eval.c